package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caocaog.market.modules.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * 订单退款信息
 *
 * @author jeecg-boot
 * @date 2021-12-01
 */
@Data
@TableName("mk_order_refund")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mk_order_refund对象", description="订单退款信息")
public class OrderRefund extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;


	/**退款订单号*/
	@Excel(name = "退款订单号", width = 15)
    @ApiModelProperty(value = "退款订单号")
    private String refundNo;
	/**订单id*/
	@Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    private String orderId;
	/**订单号*/
	@Excel(name = "订单号", width = 15)
    @ApiModelProperty(value = "订单号")
    private String orderNo;
	/**退款原因*/
	@Excel(name = "退款原因", width = 15)
    @ApiModelProperty(value = "退款原因")
    private String cause;
	/**审核状态*/
	@Excel(name = "审核状态", width = 15, dicCode = "audit")
	@Dict(dicCode = "audit")
    @ApiModelProperty(value = "审核状态 0未审核 1审核通过 2审核不通过")
    private Integer audit;
	/**申请退款时订单的状态*/
	@Excel(name = "申请退款时订单的状态", width = 15)
    @ApiModelProperty(value = "申请退款时订单的状态 -3退款完成 -2售后申请 -1已取消 0支付中 1待发货/待核销 2待收货 3已完成")
    @Dict(dicCode = "order_status")
    private String orderStatus;
	/**门店*/
	@Excel(name = "门店", width = 15)
    @ApiModelProperty(value = "门店")
    @Dict(dictTable = "mk_shop_basic",dicText = "name",dicCode = "id")
    private String shopId;
	/**商户*/
	@Excel(name = "商户", width = 15)
    @ApiModelProperty(value = "商户")
    @Dict(dictTable = "mk_merchant_basic",dicText = "name",dicCode = "id")
    private String merchantId;
	/**订单历史id*/
	@Excel(name = "订单历史id", width = 15)
    @ApiModelProperty(value = "订单历史id")
    private String orderHisId;
    /**退款金额*/
    @Excel(name = "退款金额", width = 15)
    @ApiModelProperty(value = "退款金额")
    private java.lang.String refundAmount;
    /**支付结果*/
    @Excel(name = "支付结果", width = 15)
    @ApiModelProperty(value = "支付结果")
    private String endPayInfo;
    /**是否支付*/
    @Excel(name = "是否支付", width = 15)
    @ApiModelProperty(value = "是否支付 0-未支付 1-支付成功 2-支付失败")
    private Integer payStatus;
    /**退款流水号*/
    @Excel(name = "退款流水号", width = 15)
    @ApiModelProperty(value = "退款流水号")
    private String payRefundSerno;
    @TableField(exist = false)
    @ApiModelProperty(value = "用户的openid")
    private String openid;
}
